package com.groupseven.happycampus.mapper;

import com.groupseven.happycampus.common.pojo.Commodity;
import com.groupseven.happycampus.common.pojo.OwnCommodity;

import java.util.List;
import java.util.Map;

public interface OwnCommodityMapper {
    List<OwnCommodity> selectOwnCommodityList(Map<String, Object> params);

    int addCommodity(Commodity commodity);


    /**
     *
     */
    int purchaseCommodity(Commodity commodity);

    int putOnTheShelfCommodity(Commodity commodity);

    int deleteOwnCommodity(Integer commodityId);
}
